import request from '@/utils/request.js';

// 邻工接单分类
export function getNeighborCategories() {
    return request.get(`/neighbor/categories`);
}

// 邻工接单列表
export function getNeighborList(data) {
    return request.get('/neighbor/list', data);
}

// 邻工接单详情
export function getNeighborDetail(data) {
    return request.get(`/neighbor/detail/${data}`);
}

// 小区搜索
export function getNeighborSearchHousing(data) {
    return request.get(`/neighbor/search-housing`, data);
}

// 接单
export function postNeighborTake(data) {
    return request.post(`/neighbor/take`, data);
}

// 代买，代送，代送接单
export function postNeighborPublish(data) {
    return request.post(`/neighbor/publish`, data);
}

// 代办接单
export function postNeighborPublishAgency(data) {
    return request.post(`/neighbor/publish-agency`, data);
}